package com.example.md.mddemo.easypoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.util.Assert;

import java.util.List;
import java.util.Map;

/**
 * Copyright © 2018年 ziniuxiaozhu. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * TODO:亲爱的临江仙，请写点注释吧...........
 * @Date 2018/8/20 16:12
 */
public class ExeclPerson {

    @Id
    private ObjectId id;

    @Excel(name = "姓名")
    private String name;

    @Excel(name ="年龄")
    private int age;

    private List<String> address;

    @Excel(name = "信息描述",needMerge = true)
    private Map<String,String> des;

    public List<String> getAddress() {
        return address;
    }

    public void setAddress(List<String> address) {
        this.address = address;
    }

    public Map<String, String> getDes() {
        return des;
    }

    public void setDes(Map<String, String> des) {
        this.des = des;
    }

    public ObjectId getId() {
        return id;
    }

    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address=" + address +
                ", des=" + des +
                '}';
    }
}
